<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 数据字典-查询条件 -->
<div data-options="region:'north',border:false ,height:50">
	<div id="divSearchPanel" class="form-box" style="margin: 0px; margin-top: 1px">
		<div style="margin-left:  20px">
			<div class="form-label w40">类型：</div>
			<div class="form-editor w60"  style="margin-right: 5px">
				<select class="easyui-combobox"   id="type" name="type"  data-options="onChange:selectRow"  >
					<option value="#">-----请选择大类------</option>
					<c:forEach items="${typeList}" var="domain">
						<option value="${domain.tab_name}#${domain.column_name}">${domain.column_content}</option>
					</c:forEach>
				</select>
			</div>
		</div>

		<div style="margin-left: 5px;">
			<div class="form-label   w40">表名：</div>
			<div class="form-editor  w60">
				<input class="easyui-textbox" type="text" id="tab_name" name="tab_name" data-options="" /></input>
			</div>
		</div>
		<div >
			<div class="form-label  w40">列名：</div>
			<div class="form-editor  w60" >
				<input class="easyui-textbox" type="text" id="column_name" name="column_name" data-options="" /></input>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	/** 选中大类名称的时候，给表名，列名赋值*/
	function selectRow(newValue, oldValue){
        var arrTmp = newValue.split("#");
        $('#tab_name').textbox("setValue",arrTmp[0]);
        $('#column_name').textbox("setValue",arrTmp[1]);
	}

</script>>